/**
 * Created by hxpeng on 2017/3/24.
 */

(function () {
    'use strict';
    angular.module('App.pages.member.entrust')
        .service('EntrustModel', EntrustModel);

    function EntrustModel(API,$resource) {
        this.actions = {}
        this.actions.getEntrustPage = {
            method: 'POST',
            url: API + '/entrust/getEntrustPage'
        }
        this.actions.getEntrustInfo = {
            method: 'GET',
            url: API + '/entrust/getEntrustInfo'
        }
        this.actions.saveEntrust = {
            method: 'POST',
            url: API + '/entrust/saveEntrust'
        }
        this.actions.executedEntrust = {
            method: 'GET',
            url: API + '/entrust/executedEntrust'
        }
        this.actions.deleteEntrust = {
            method: 'GET',
            url: API + '/entrust/deleteEntrust'
        }
        return $resource.call(this, this.url, this.params, this.actions)
    }
})();